<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 200px;
            height: 50px;
            border: 1px solid red;
            /*水平对齐方式*/
            text-align: center;
            /*行高,通过行高控制垂直居中*/
            line-height: 50px;
            /*文本修饰,overline上划线 underline下划线
              line-through删除线 none去掉文本修饰*/
            text-decoration: line-through;
            /*文本阴影*/
            text-shadow: red 2px -2px 0.9px;
            /*字体大小*/
            font-size: 20px;
            /*字体加粗*/
            font-width: bold;
            color: #4183C4;
        }
        a {
            text-decoration: none; /*去掉自带的下划线*/
        }
        h3 {
            font-weight: normal;/*去掉自带加粗*/
            /*设置斜体*/
            font-style: italic;
            /*设置字体*/
            /*font-family: cursive;*/
            font : 30px cursive; /*会覆盖斜体*/
        }
    </style>
</head>
<body>
    <div>文本和字体测试</div>
    <a href="">超链接</a>
    <h3>这是h3</h3>
</body>
</html>